#include <iostream>
#include <string>

#include <sys/types.h>
#include <sys/socket.h>

using namespace std;

const static int defaultsockfd = -1;

class TcpServer
{
public:
    TcpServer(uint16_t port)
    :_port(port),_sockfd(defaultsockfd)
    {

    }

    void InitServer()
    {
        _sockfd = socket(AF_INET,SOCK_STREAM,0);

        if(_sockfd < 0)
        {
            cout << "创建网路套接字失败" << endl;
            return;
        }
        
    }

    void Loop()
    {

    }

    ~TcpServer()
    {

    }
private:
    uint16_t _port;
    int _sockfd;
};


